(function(rbox) {

	return function(req, chain) {
		if (req.path == '/echo') {
			var message = req.params.getFirst('m');
			return new com.googlecode.restitory.gae.Response(req).setCode(200)
					.setContentType('text/plain').setContent(message);
		}
		var ret = chain.execute(req);
		return ret;
	}

})(rhinoBox);
